package edu.sctu.zhengsenwen.month201506.day20150618;

/**
 * Created by user15 on 2015/6/18.
 */
public class UseStaticDemo {

    public UseStaticDemo(){

        StaticDemo staticDemo1 = new StaticDemo();

        staticDemo1.setClassMember(5);
        staticDemo1.setInstanceMember(10);


        StaticDemo staticDemo2 = new StaticDemo();

        System.out.println("第1个对象的类属性 = "+staticDemo1.getClassMember());
        System.out.println("第2个对象的类属性 = "+staticDemo2.getClassMember());
        System.out.println("第1个对象的实例属性 = "+staticDemo1.getInstanceMember());
        System.out.println("第2个对象的实例属性 = "+staticDemo2.getInstanceMember());
    }

    public static void main(String[] args) {

        UseStaticDemo useStaticDemo = new UseStaticDemo();
    }
}
